<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<head>
	<title>执行</title>
	<script> 
		function daiban(process_instance_id,workitem_id){
			location.href="${pageContext.request.contextPath}/edu.ccut.saturn.workflow/page/setdaiban.jsp?process_instance_id="+process_instance_id +"&workitem_id="+workitem_id;
		}
			function refuse(process_instance_id,workitem_id){
			location.href="${pageContext.request.contextPath}/edu.ccut.saturn.workflow/page/setdaibanRefuse.jsp?process_instance_id="+process_instance_id +"&workitem_id="+workitem_id;
		}
	</script>
</head>

<body>
<table width="100%" align="center">
<tr>
<td>	
	
<form name="form1" method="post"
	action="${pageContext.request.contextPath}/edu.ccut.saturn.workflow::/publicModule/action/FinishWorkFlowTask.action">
	<%
	    List<SaturnData> messageList = (ArrayList<SaturnData>)request.getAttribute("daibanMessageList");    
    	String isRefuse="0";
    	if(messageList!=null){
       		if(messageList.size()%2==1){
           		isRefuse="1";
       		}
    	}
		SaturnData userSaturn = (SaturnData)session.getAttribute("__SATURN_AUTORITY_USER__");
		String userName = (String) userSaturn.get("username");
		String user_serialno = (String) userSaturn.get("user_serialno");

        String assistant_department = (String) userSaturn.get("jgdm");
		

    	String dwCode = (String) userSaturn.get("pcsjgdm");
		String dwName = (String) userSaturn.get("name");
		String yhip = (String) userSaturn.get("yhip");

 		String isDaiban = request.getAttribute("isDaiban")+"";
 	%> 
 	
 	<input name="wf_process_define_id" type="hidden" value="${workiteminfo.process_define_id}"> 
	<input name="wf_workitem_id" type="hidden" value="${workiteminfo.workitem_id}"> 
	<input name="wf_userName" type="hidden" value="<%=userName%>"> 
	<input name="wf_assistant_department" type="hidden" value="<%=assistant_department%>"> 
	<input name="wf_userSerialNo" type="hidden" value="<%=user_serialno%>"> 
<input name="wf_yhip" type="hidden" value="<%=yhip%>"> 
	<input name="wf_dwCode" type="hidden" value="<%=dwCode%>"> 
	<input name="wf_dwName" type="hidden" value="<%=dwName%>">   	
		
<table width="100%">
<tr>
<saturn:formBeanLine />